<?php

namespace app\common\forms;

use yii\base\Model;

class BaseForm extends Model{

    public function getFirstFieldError()
    {
        $errors = $this->getFirstErrors();
        return array_shift($errors);
    }
}